package battleline;
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Pregunta {
	
	public Pregunta () {
		
	}
	
	public Integer preguntar() {
	
		Integer res = new Integer(-1);
		
		while (res == -1) {
		System.out.print("Elija una respuesta: ");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String linea = br.readLine();
			res = Integer.parseInt(linea);
				} catch (Exception e) {	}
			}
 		return res;
	}

	/**
	 * @uml.property  name="estandarte"
	 * @uml.associationEnd  inverse="pregunta:battleline.Estandarte"
	 */
	private Estandarte estandarte;

	/**
	 * Getter of the property <tt>estandarte</tt>
	 * @return  Returns the estandarte.
	 * @uml.property  name="estandarte"
	 */
	public Estandarte getEstandarte() {
		return estandarte;
	}

	/**
	 * Setter of the property <tt>estandarte</tt>
	 * @param estandarte  The estandarte to set.
	 * @uml.property  name="estandarte"
	 */
	public void setEstandarte(Estandarte estandarte) {
		this.estandarte = estandarte;
	}

}